home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998…eptember: Technology Seed / September 98 ADC Seed CD.toast / FireWire 1.1 DR2 SDK / Source / FWIM / MakeFile < prev   
Encoding:
Makefile  |  1998-01-15  |  8.6 KB  |  293 lines  |  [TEXT/MPS ]

  1. #
  2. #    File:        MakeFile
  3. #
  4. #    Contains:    Build rules for FWIM sample code.
  5. #
  6. #    Written by:    Erik Staats
  7. #
  8. #    Copyright:    © 1996-1997 by Apple Computer, Inc., all rights reserved.
  9. #
  10. #    Change History (most recent first):
  11. #
  12. #      <FW29>     8/29/97    KDM        Bumped version to 1.0.1a6. Piece of Blaze 1.1a6
  13. #      <FW28>     6/19/97    GG        Bumped version to 1.0.1a5.
  14. #      <FW27>      6/5/97    EA        Added instructions to build PeleFWIM sample code.
  15. #      <FW26>     5/29/97    GG        Bumped version to 1.01a4.
  16. #      <FW25>     5/16/97    GG        Bumped FireWire version to 1.01a3.
  17. #      <FW24>     4/29/97    GG        Bumped version to 1.0.1a2.
  18. #      <FW23>     4/10/97    GG        Bumped version to 1.0.1d1.
  19. #      <FW22>     3/27/97    GG        Bumped version to 1.0 GM.
  20. #      <FW21>     3/19/97    GG        Bumped version to 1.0b3.
  21. #      <FW20>     3/12/97    GG        Bumped version to 1.0b2.
  22. #      <FW19>     2/19/97    GG        Bumped version to 1.0a3.
  23. #      <FW18>     2/11/97    GG        Bumped copyright to 1997.
  24. #      <FW17>     2/11/97    GG        Bumped version to 1.0a2.
  25. #      <FW16>      2/4/97    GG        
  26. #      <FW15>      2/4/97    GG        Bumped version to 1.0d24.
  27. #      <FW14>     1/28/97    GG        Bumped version to 1.0d23.
  28. #      <FW13>     1/21/97    GG        Bumped version to 1.0d22.
  29. #      <FW12>      1/2/97    GG        Bumped Version to 1.0d21.
  30. #      <FW11>     12/6/96    GG        Bumped version to 1.0d19.
  31. #      <FW10>    11/27/96    ES        Removed links to DevNLib.
  32. #       <FW9>    11/26/96    ES        Removed -main FWIMInterface option from links.
  33. #       <FW8>    11/14/96    GG        Bumped version to 1.0d18.
  34. #       <FW7>    10/31/96    ES        Bumped version to 1.0d17.
  35. #       <FW6>    10/16/96    ES        Bumped version to 1.0d16.
  36. #       <FW5>     10/2/96    ES        Bumped version to 1.0d15.
  37. #       <FW4>     9/12/96    ES        Bumped version to 1.0d14.
  38. #       <FW3>     8/26/96    ES        Changed to use MrC and SC. This MakeFile will now only work with
  39. #                                    ETO #20 and forward.
  40. #       <FW2>      8/7/96    ES        Filled in contains and written by fields.
  41. #       <FW1>      8/7/96    ES        first checked in
  42. #
  43. #
  44.  
  45. ################################################################################
  46. #
  47. # Define some directories
  48. #
  49.  
  50. FWIMRootDir                    =    :
  51.  
  52. FWSampleDir                    =    {FWIMRootDir}::
  53.  
  54. SysInterfacesDir            =    {FWSampleDir}Interfaces:
  55. FWIMInterfacesDir            =    {FWIMRootDir}Interfaces:
  56.  
  57. SysLibrariesDir                =    {FWSampleDir}Libraries:
  58. FWIMLibrariesDir            =    {FWIMRootDir}Libraries:
  59.  
  60. LynxFWIMSourceDir            =    {FWIMRootDir}LynxFWIM:
  61. PeleFWIMSourceDir            =    {FWIMRootDir}PeleFWIM:
  62.  
  63. BuildResultsDir                =    {FWSampleDir}BuildResults:
  64. ObjectsDir                    =    {BuildResultsDir}Objects:
  65. ExtensionsDir                =    {BuildResultsDir}Extensions:
  66.  
  67. ################################################################################
  68. #
  69. # Define version info
  70. #
  71.  
  72. FWVersion                    =    1
  73. FWRevision                    =    0
  74. FWBuildStage                =    alpha
  75. FWBuildNumber                =    6
  76. FWShortVersionString        =    '"1.0.1a6"'
  77. FWLongVersionString            =    '"1.0.1a6, © 1995-97 Apple Computer, Inc."'
  78.  
  79.  
  80. ################################################################################
  81. #
  82. # Define stuff for 68K compilation
  83. #
  84.  
  85. C68KOptions                    =    -d ccompile                                    ∂
  86.                                 -b                                            ∂
  87.                                 -r                                            ∂
  88.                                 -i "{SysInterfaces}"                        ∂
  89.                                 -i "{CIncludes}"                            ∂
  90.                                 -mc68020
  91.  
  92. Asm68K                        =    Asm
  93.  
  94. C68K                        =    SC
  95.  
  96. Link68K                        =    Link
  97.  
  98.  
  99. ################################################################################
  100. #
  101. # Define stuff for PowerPC compilation
  102. #
  103.  
  104. MrCOptions                    =    -opt speed                                    ∂
  105.                                 -w 2,7,35                                    ∂
  106.                                 -d TRUE=1                                    ∂
  107.                                 -d FALSE=0                                    ∂
  108.                                 -i "{SysInterfacesDir}"                        ∂
  109.                                 -i "{FWIMInterfacesDir}"                    ∂
  110.                                 -i "{CIncludes}"
  111.  
  112. CPPCOptions                    =    {MrCOptions}
  113.  
  114. AsmPPC                        =    PPCAsm
  115.  
  116. AsmPPCOptions                =    -dialect PowerPC                            ∂
  117.                                 -o {Targ}
  118.  
  119. CPPC                        =    MrC
  120.  
  121. LinkPPC                        =    PPCLink
  122.  
  123.  
  124. ################################################################################
  125. #
  126. # Define stuff for rez
  127. #
  128.  
  129. RezOptions                    =    -d FWVersion={FWVersion}                    ∂
  130.                                 -d FWRevision={FWRevision}                    ∂
  131.                                 -d FWBuildStage={FWBuildStage}                ∂
  132.                                 -d FWBuildNumber={FWBuildNumber}            ∂
  133.                                 -d FWShortVersionString={FWShortVersionString}    ∂
  134.                                 -d FWLongVersionString={FWLongVersionString}
  135.  
  136.  
  137. ################################################################################
  138. #
  139. # Lynx FWIM
  140. #
  141.  
  142. "{ObjectsDir}LynxFWIM.c.o"    ƒ                                                ∂
  143.                             "{LynxFWIMSourceDir}LynxFWIM.c"                    ∂
  144.                             "{LynxFWIMSourceDir}LynxFWIM.h"
  145.     {CPPC}                                                                    ∂
  146.         "{LynxFWIMSourceDir}LynxFWIM.c"                                     ∂
  147.         -i "{LynxFWIMSourceDir}"                                            ∂
  148.         {CPPCOptions}                                                        ∂
  149.         -o {Targ}
  150.  
  151. "{ExtensionsDir}LynxFWIM"    ƒƒ                                                ∂
  152.                             "{ObjectsDir}LynxFWIM.c.o"                        ∂
  153.                             "{LynxFWIMSourceDir}LynxFWIM.exp"
  154.     {LinkPPC}                                                                ∂
  155.         -t 'ndrv'                                                            ∂
  156.         -c 'fw  '                                                            ∂
  157.         -xm sharedlibrary                                                    ∂
  158.         -w                                                                     ∂
  159.         -@export "{LynxFWIMSourceDir}LynxFWIM.exp"                            ∂
  160.         "{ObjectsDir}LynxFWIM.c.o"                                            ∂
  161.         "{SysLibrariesDir}InterfaceLib.xcoff"                                ∂
  162.         "{SysLibrariesDir}StdCLib.xcoff"                                    ∂
  163.         "{SysLibrariesDir}NameRegistryLib"                                    ∂
  164.         "{SysLibrariesDir}DriverServicesLib"                                ∂
  165.         "{SysLibrariesDir}PCILib"                                            ∂
  166.         "{SysLibrariesDir}FWServicesLib"                                    ∂
  167.         "{SysLibrariesDir}PPCCRuntime.o"                                    ∂
  168.         -librename InterfaceLib.xcoff=InterfaceLib                            ∂
  169.         -librename StdCLib.xcoff=StdCLib                                    ∂
  170.          -o {Targ}
  171.  
  172. "{ExtensionsDir}LynxFWIM"    ƒƒ                                                ∂
  173.                             "{ObjectsDir}LynxFWIM.c.o"                        ∂
  174.                             "{LynxFWIMSourceDir}LynxFWIM.exp"                ∂
  175.                             "{LynxFWIMSourceDir}LynxFWIM.r"                    ∂
  176.                             "{FWIMRootDir}MakeFile"
  177.     Rez                                                                        ∂
  178.         {RezOptions}                                                        ∂
  179.         "{LynxFWIMSourceDir}LynxFWIM.r"                                        ∂
  180.         -a                                                                    ∂
  181.         -o {Targ}
  182.  
  183.  
  184. LynxFWIM    ƒ                                                                ∂
  185.                         "{ExtensionsDir}LynxFWIM"
  186.  
  187.  
  188. ################################################################################
  189. #
  190. # Lynx Lite FWIM
  191. #
  192.  
  193. "{ObjectsDir}LynxLiteFWIM.c.o"    ƒ                                            ∂
  194.                             "{LynxFWIMSourceDir}LynxFWIM.c"                    ∂
  195.                             "{LynxFWIMSourceDir}LynxFWIM.h"
  196.     {CPPC}                                                                    ∂
  197.         "{LynxFWIMSourceDir}LynxFWIM.c"                                     ∂
  198.         -d LynxLiteFWIM                                                        ∂
  199.         -i "{LynxFWIMSourceDir}"                                            ∂
  200.         {CPPCOptions}                                                        ∂
  201.         -o {Targ}
  202.  
  203. "{ExtensionsDir}LynxLiteFWIM"    ƒƒ                                            ∂
  204.                             "{ObjectsDir}LynxLiteFWIM.c.o"                    ∂
  205.                             "{LynxFWIMSourceDir}LynxFWIM.exp"
  206.     {LinkPPC}                                                                ∂
  207.         -t 'ndrv'                                                            ∂
  208.         -c 'fw  '                                                            ∂
  209.         -xm sharedlibrary                                                    ∂
  210.         -w                                                                     ∂
  211.         -@export "{LynxFWIMSourceDir}LynxFWIM.exp"                            ∂
  212.         "{ObjectsDir}LynxLiteFWIM.c.o"                                        ∂
  213.         "{SysLibrariesDir}InterfaceLib.xcoff"                                ∂
  214.         "{SysLibrariesDir}StdCLib.xcoff"                                    ∂
  215.         "{SysLibrariesDir}NameRegistryLib"                                    ∂
  216.         "{SysLibrariesDir}DriverServicesLib"                                ∂
  217.         "{SysLibrariesDir}PCILib"                                            ∂
  218.         "{SysLibrariesDir}FWServicesLib"                                    ∂
  219.         "{SysLibrariesDir}PPCCRuntime.o"                                    ∂
  220.         -librename InterfaceLib.xcoff=InterfaceLib                            ∂
  221.         -librename StdCLib.xcoff=StdCLib                                    ∂
  222.          -o {Targ}
  223.  
  224. "{ExtensionsDir}LynxLiteFWIM"    ƒƒ                                            ∂
  225.                             "{ObjectsDir}LynxLiteFWIM.c.o"                    ∂
  226.                             "{LynxFWIMSourceDir}LynxFWIM.exp"                ∂
  227.                             "{LynxFWIMSourceDir}LynxFWIM.r"                    ∂
  228.                             "{FWIMRootDir}MakeFile"
  229.     Rez                                                                        ∂
  230.         {RezOptions}                                                        ∂
  231.         "{LynxFWIMSourceDir}LynxFWIM.r"                                        ∂
  232.         -a                                                                    ∂
  233.         -o {Targ}
  234.  
  235.  
  236. LynxLiteFWIM    ƒ                                                            ∂
  237.                         "{ExtensionsDir}LynxLiteFWIM"
  238.  
  239.  
  240. ################################################################################
  241. #
  242. # Pele FWIM
  243. #
  244.  
  245. "{ObjectsDir}PeleFWIM.c.o"    ƒ                                                ∂
  246.                             "{PeleFWIMSourceDir}PeleFWIM.c"                    ∂
  247.                             "{PeleFWIMSourceDir}PeleFWIM.h"
  248.     {CPPC}                                                                    ∂
  249.         "{PeleFWIMSourceDir}PeleFWIM.c"                                     ∂
  250.         -i "{PeleFWIMSourceDir}"                                            ∂
  251.         {CPPCOptions}                                                        ∂
  252.         -o {Targ}
  253.  
  254. "{ExtensionsDir}PeleFWIM"    ƒƒ                                                ∂
  255.                             "{ObjectsDir}PeleFWIM.c.o"                        ∂
  256.                             "{PeleFWIMSourceDir}PeleFWIM.exp"
  257.     {LinkPPC}                                                                ∂
  258.         -t 'ndrv'                                                            ∂
  259.         -c 'fw  '                                                            ∂
  260.         -xm sharedlibrary                                                    ∂
  261.         -w                                                                     ∂
  262.         -@export "{PeleFWIMSourceDir}PeleFWIM.exp"                            ∂
  263.         "{ObjectsDir}PeleFWIM.c.o"                                            ∂
  264.         "{SysLibrariesDir}InterfaceLib.xcoff"                                ∂
  265.         "{SysLibrariesDir}StdCLib.xcoff"                                    ∂
  266.         "{SysLibrariesDir}NameRegistryLib"                                    ∂
  267.         "{SysLibrariesDir}DriverServicesLib"                                ∂
  268.         "{SysLibrariesDir}PCILib"                                            ∂
  269.         "{SysLibrariesDir}FWServicesLib"                                    ∂
  270.         "{SysLibrariesDir}PPCCRuntime.o"                                    ∂
  271.         -librename InterfaceLib.xcoff=InterfaceLib                            ∂
  272.         -librename StdCLib.xcoff=StdCLib                                    ∂
  273.          -o {Targ}
  274.  
  275. "{ExtensionsDir}PeleFWIM"    ƒƒ                                                ∂
  276.                             "{ObjectsDir}PeleFWIM.c.o"                        ∂
  277.                             "{PeleFWIMSourceDir}PeleFWIM.exp"                ∂
  278.                             "{PeleFWIMSourceDir}PeleFWIM.r"                    ∂
  279.                             "{FWIMRootDir}MakeFile"
  280.     Rez                                                                        ∂
  281.         {RezOptions}                                                        ∂
  282.         "{PeleFWIMSourceDir}PeleFWIM.r"                                        ∂
  283.         -a                                                                    ∂
  284.         -o {Targ}
  285.  
  286.  
  287. PeleFWIM    ƒ                                                                ∂
  288.                         "{ExtensionsDir}PeleFWIM"
  289.  
  290. FWIM    ƒ                                                                    ∂
  291.                         LynxFWIM                                            ∂
  292.                         LynxLiteFWIM
  293.